import 'package:flutter_enjoy_plus/constants/index.dart';
import 'package:flutter_enjoy_plus/utils/RequestDio.dart';

sendCodeAPI(Map<String, dynamic> params) {
  return requestDio.get(HTTP_PATH.USER_SEND_CODE, params: params);
}

// loginAPI(Map<String, dynamic> data) {
//   return requestDio.post(HTTP_PATH.USER_SEND_CODE, data: data);
// }

// loginAPI({'mobile': '123123123', 'code': '123123'})
loginAPI(Map<String, dynamic> data) {
  return requestDio.post(HTTP_PATH.USER_LOGIN_CODE, data: data);
}
